import request from '@/utils/request'

// 查询客房信息列表
export function listInfo(query) {
  return request({
    url: '/system/PmsGuestroomInfo/list',
    method: 'get',
    params: query
  })
}

// 查询客房信息列表List
export function roomInfoList(query) {
  return request({
    url: '/system/PmsGuestroomInfo/roomInfoList',
    method: 'get',
    params: query
  })
}

// 查询客房信息详细
export function getInfo(id) {
  return request({
    url: '/system/PmsGuestroomInfo/' + id,
    method: 'get'
  })
}

// 新增客房信息
export function addInfo(data) {
  return request({
    url: '/system/PmsGuestroomInfo',
    method: 'post',
    data: data
  })
}

// 修改客房信息
export function updateInfo(data) {
  return request({
    url: '/system/PmsGuestroomInfo',
    method: 'put',
    data: data
  })
}
// 删除客房信息
export function delInfo(id) {
  return request({
    url: '/system/PmsGuestroomInfo/' + id,
    method: 'delete'
  })
}

// 客房清理
export function housekeeping(id) {
  return request({
    url: '/system/PmsGuestroomInfo/housekeeping/' + id,
    method: 'get'
  })
}
